<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<jsp:include page="../include/header.jsp" />
<jsp:include page="../include/navigation.jsp" />

<!-- <h2>Find friends</h2> -->

<div id="sideBar">
	<jsp:include page="inc_side.jsp" />
</div>
<div id="content">
	<h2>${friendship.friend.fullName}</h2>

	<p></p>

	<c:if test="${friendship.status != FriendshipStatus.PENDING}">
		<c:choose>
			<c:when test="${friendship.status == FriendshipStatus.BLOCKED}"><p><a href="${baseUrl}/friends/unblock/${friendship.friend.id}">Unblock friendship</a></p></c:when>
			<c:otherwise><p><a href="${baseUrl}/friends/block/${friendship.friend.id}">Block friendship</a></p></c:otherwise>
		</c:choose>
	</c:if>
	
	<c:choose>
		<c:when test="${friendship.status == FriendshipStatus.PENDING}"><p><a href="${baseUrl}/friends/cancel/${friendship.friend.id}">Cancel request</a></p></c:when>
		<c:otherwise><p><a href="${baseUrl}/friends/cancel/${friendship.friend.id}">Cancel friendship</a></p></c:otherwise>
	</c:choose>
</div>

<jsp:include page="../include/footer.jsp" />